package com.robotic.videoAlarm.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.robotic.common.utils.DateUtils;
import com.robotic.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.robotic.videoAlarm.mapper.VideoAlarmCategoryMapper;
import com.robotic.videoAlarm.domain.VideoAlarmCategory;
import com.robotic.videoAlarm.service.IVideoAlarmCategoryService;

/**
 * 视频报警类别管理Service业务层处理
 *
 * @author tian
 * @date 2025-09-15
 */
@Service
public class VideoAlarmCategoryServiceImpl extends ServiceImpl<VideoAlarmCategoryMapper, VideoAlarmCategory> implements IVideoAlarmCategoryService
{
    @Autowired
    private VideoAlarmCategoryMapper videoAlarmCategoryMapper;

    /**
     * 查询视频报警类别管理
     *
     * @param id 视频报警类别管理主键
     * @return 视频报警类别管理
     */
    @Override
    public VideoAlarmCategory selectVideoAlarmCategoryById(Long id)
    {
        return videoAlarmCategoryMapper.selectVideoAlarmCategoryById(id);
    }

    /**
     * 查询视频报警类别管理列表
     *
     * @param videoAlarmCategory 视频报警类别管理
     * @return 视频报警类别管理
     */
    @Override
    public List<VideoAlarmCategory> selectVideoAlarmCategoryList(VideoAlarmCategory videoAlarmCategory)
    {
        return videoAlarmCategoryMapper.selectVideoAlarmCategoryList(videoAlarmCategory);
    }

    /**
     * 新增视频报警类别管理
     *
     * @param videoAlarmCategory 视频报警类别管理
     * @return 结果
     */
    @Override
    public int insertVideoAlarmCategory(VideoAlarmCategory videoAlarmCategory)
    {
        return baseMapper.insert(videoAlarmCategory);
    }

    /**
     * 修改视频报警类别管理
     *
     * @param videoAlarmCategory 视频报警类别管理
     * @return 结果
     */
    @Override
    public int updateVideoAlarmCategory(VideoAlarmCategory videoAlarmCategory)
    {
        return baseMapper.updateVideoAlarmCategory(videoAlarmCategory);
    }

    /**
     * 批量删除视频报警类别管理
     *
     * @param ids 需要删除的视频报警类别管理主键
     * @return 结果
     */
    @Override
    public int deleteVideoAlarmCategoryByIds(Long[] ids)
    {
        return videoAlarmCategoryMapper.deleteVideoAlarmCategoryByIds(ids);
    }

    /**
     * 删除视频报警类别管理信息
     *
     * @param id 视频报警类别管理主键
     * @return 结果
     */
    @Override
    public int deleteVideoAlarmCategoryById(Long id)
    {
        return videoAlarmCategoryMapper.deleteVideoAlarmCategoryById(id);
    }
}
